/*
 ********************************************************************************
 * Copyright (c) 2013 Samsung Electronics, Inc.
 * All rights reserved.
 *
 * This software is a confidential and proprietary information of Samsung
 * Electronics, Inc. ("Confidential Information"). You shall not disclose such
 * Confidential Information and shall use it only in accordance with the terms
 * of the license agreement you entered into with Samsung Electronics.
 ********************************************************************************
 */

package adjust_volume;

/**
 * Implementations of this interface can directly manipulate a drawer.
 */
public interface DrawerOpener {

	/**
	 * Opens a drawer identified by the gravity.
	 * 
	 * @param gravity
	 *            constant from the {@link android.view.Gravity} class
	 */
	void openDrawer(int gravity);

	/**
	 * Closes the drawer identified by the gravity.
	 * 
	 * @param gravity
	 *            constant from the {@link android.view.Gravity} class
	 */
	void closeDrawer(int gravity);
	
	

	/**
	 * Checks whether a drawer identified by the gravity is opened.
	 * 
	 * @param gravity
	 *            constant from the {@link android.view.Gravity} class
	 * @return true if the drawer is open, false otherwise
	 */
	boolean isDrawerOpen(int gravity);

	/**
	 * Gets the current rotation of the device.
	 * 
	 * @return rotation constant from the {@link android.view.Surface} class
	 */
	int getRotation();
}
